import request from '@/utils/request'

export function getHealthRecordsList(data) {
  return request({
    url: '/health_records/admin/list',
    method: 'post',
    data
  })
}
export function getHealthRecordsListAll(data) {
  return request({
    url: '/health_records/admin/listAll',
    method: 'get',
    data
  })
}

export function getHealthRecordsDetail(params) {
  return request({
    url: '/health_records/admin/getDetail',
    method: 'get',
    params
  })
}

export function updateHealthRecordsDetail(data) {
  return request({
    url: '/health_records/admin/update',
    method: 'post',
    data
  })
}

export function addHealthRecordsDetail(data) {
  return request({
    url: '/health_records/admin/create',
    method: 'post',
    data
  })
}
export function delHealthRecordsDetail(params) {
  return request({
    url: '/health_records/admin/delete',
    method: 'get',
    params
  })
}
